using System;
using System.Collections.Generic;
using System.Text;

namespace ViewOnAddInsAPI
{
    /// <summary>
    /// This class is to implement to support the exchange of generic information
    /// between add-ins.
    /// </summary>
    interface IGenericInfo
    {
        /// <summary>
        /// Returns a property based on its name.
        /// </summary>
        /// <param name="name">The property's name</param>
        /// <returns>The value</returns>
        object GetProperty(string name);


        /// <summary>
        /// Sets a property based on its name.
        /// </summary>
        /// <param name="name">The property's name</param>
        /// <param name="name"></param>
        /// <returns>Returns true if the property is correctly set</returns>
        bool SetProperty(string name, object value);
    }
}
